<template>
	<view class="xyBook_main">
		<view class="warps" v-html="agreementContext">
			协议内容
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				agreementContext:'',
			};
		},
		async onLoad(data) {
			const _this = this;
			if(data.title){
				uni.setNavigationBarTitle({
					title:data.title
				})
			};
			let res = (await _this.$http('/api/unAuth/agreement/getAgreement','POST',data.xy)).data;
			if(res && res.code == '0'){
				_this.agreementContext = res.data.agreementContext || '';
			}else{
				_this.$showToast(res.msg);
			}
		}
	}
</script>

<style lang="scss">
	.xyBook_main{
		width: 100%;
		.warps{
			padding: 0 20rpx;
		}
	}
</style>
